#include "shellCmd.h"
#include "shellCmdUser.h"
#include "shellCmdList.h"

#ifdef AW_SHELL

SHELL_CommandTypeDef shellCmdStructArray[SHELL_CMD_LIST_COUNT]={
		{"aw_showlist",shellShowCmdList,"show command list of shell"},
		{"aw_about",shellAbout,"show author info. of shell"},
		{"aw_reboot",shellReboot,"reboot"},
		{"aw_paratest",shellParaTest,"function for test"},
		{"aw_get_uuid",shellCmd_Get_CPU_UUID,"get 96 bits UUID of MCU, para:0-2"},
		{"aw_set_dac",shellCmd_SetDAC,"-c:-v:-s:"},
		{"aw_gpio_setvalue",shellCmd_GPIO_SetValue,"para: GPIOx(A-D),GPIO_Pin:(0-15),Value(0-1)"},
		{"aw_pwm_cmd",shellCmd_PWM_Cmd,"para: TIMx(1-4),TIM_Channel(1-4),Cmd(0-1)"},
		{"aw_pwm_setdutycycle",shellCmd_PWM_SetDutyCycle,"para: TIMx(1-4),channel:(1-4),DutyCycle(0-10000)"},
		{"aw_adc_getvalue",shellCmd_ADC_GetValue,"para: ADC Channel(0~7)"},
		{"aw_opt_basictimer",shellCmd_OptBasicTimer,"-t:-f:-p:-c:"},
		{"aw_opt_sensordata",shellCmd_OptSensorData,"-a-w-i:-v:"},
		{"aw_opt_configdata",shellCmd_OptConfigData,"-a-w-i:-v:"},
		{"aw_opt_storabledata",shellCmd_OptStorableData_Value,"-a-w-i:-v"},
		{"aw_save_storabledata",shellCmd_SaveStorableData,"-a-d-i:"},
		{"aw_load_storabledata",shellCmd_LoadStorableData,"-a-e-i:"},
		{"aw_opt_motor",shellCmd_Opt_Motor,"e:b:r:s:d:i:"},
		{"aw_opt_heater",shellCmd_Opt_Heater,"e:p:"},
		{"aw_opt_pid",shellCmd_Opt_PID,"p:i:d:s:"},
};

#endif
